<link rel="stylesheet" type="text/css" href="/static/js/artdialog/skins/brief.css?4.1.7">
<script src="/static/js/artdialog/artDialog.js?skin=brief"></script>
{js href="/static/js/artdialog/plugins/iframeTools.js"} {css href="/static/js/form/style.css"} {js href="/static/js/form/form.js"}
<form action="" method="post">
    <div class="tools_bar clearfix">
        <a class="icon-checkbox-checked icon-checkbox-unchecked" href="javascript:;" onclick="tools_select('id[]',this)" title="全选" data="true"> 全选 </a>
        <a class="icon-remove-2" href="javascript:;" onclick="tools_submit({action:'{:url(\'admin/log_operation_del\')}',msg:'删除后无法恢复，你真的删除吗？'})" title="删除"> 删除</a>
            <select name="search" id="log_search">
                <option value="all" {if isset($searchType) && $searchType == "all"}selected{/if}>全部</option>
                {volist name="customerList" id="customer"}
                    <option value="{$customer['id']}" {if isset($searchType) && $searchType == $customer["id"]}selected{/if}>{$customer['real_name']}</option>
                {/volist}
            </select>
    </div>
    <div>
        <table class="default">
            {volist name="logOperationList" id="logOperation"}
                <tr class="gray">
                    <td style="width:30px">
                        <input type="checkbox" name="id[]" value="{$logOperation['id']}">
                    </td>
                    <td style="width:140px">管理员：{$logOperation['mname']}</td>
                    <td style="width:140px">动作：{$logOperation['action']}</td>
                    <td style="width:auto;">时间：{$logOperation['time']}</td>
                    <td style="width:160px">IP地址：{$logOperation['ip']}</td>
                </tr>
                <tr>
                    <td colspan="4">访问页面地址：{$logOperation['url']}
                        <br/>日志的详细描述：<b class="golden">{$logOperation['content']}</b></td>
                    <td style="width:120px" class="btn_min"> <a class="icon-close" href="{:url('admin/log_operation_del', ['id' => $logOperation['id']])}"> 删除</a></td>
                </tr>
            {/volist}
        </table>
    </div>
</form>
<div class="page_nav">
    {$logOperationList->render()}
</div>
<script>
$('#log_search').on('change', function () {
    var searchType = $(this).val();

    var jumpUrl = "{:url('admin/log_operation_list', ['searchType' => '__SEARCHTYPE__'])}";

    jumpUrl = jumpUrl.replace('__SEARCHTYPE__', searchType);
    window.location.href = jumpUrl;
});
</script>